package com.milkshopbackend.milkshop.entity;

import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
public class AddressDTO {
    @NotBlank(message = "收货人姓名不能为空")
    private String name;
    @NotBlank(message = "联系电话不能为空")
    private String tel;
    @NotBlank(message = "省份不能为空")
    private String province;
    @NotBlank(message = "城市不能为空")
    private String city;
    @NotBlank(message = "区/县不能为空")
    private String county;
    @NotBlank(message = "详细地址不能为空")
    private String addressDetail;
    private Integer isDefault; // 0-否 1-是
} 